﻿<%@ Page Title="Travel Package" Language="C#" MasterPageFile="~/Client/Client.Master" AutoEventWireup="true" CodeBehind="TravelPackage.aspx.cs" Inherits="Travel.Api.Site.TravelPackagePage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="page_header">
        <h2><img src="<%=ResolveClientUrl("~") %>images/design/dashboard_icon.png" alt="" title="" /> Travel Package</h2>
    </div>
    <div class="table-responsive">

                <asp:GridView ID="grid" AutoGenerateColumns="false" runat="server" CssClass="table table-bordered table-hover"
                AllowPaging="True" PageSize="20" OnPageIndexChanging="grid_PageIndexChanging" onrowdatabound="grid_RowDataBound">
                <PagerSettings Mode="Numeric" PageButtonCount="4" NextPageText=">" PreviousPageText="<"  FirstPageText="<<" LastPageText=">>"/>
                <Columns>
                    <asp:TemplateField HeaderText="Package Name">
                        <ItemTemplate>
                            <asp:HiddenField ID="hidId" Value='<%#Eval("TravelId")%>' runat="server" />
                            <asp:Label runat="server" ID="lblPackageName" Text='<%# Eval("PackageName") %>'/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Vacation Length" ItemStyle-HorizontalAlign="Right">
                        <ItemTemplate>
                            <asp:Label ID="lblVacationLenght" Text='<%# Eval("VacationLength") %>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Cost" ItemStyle-HorizontalAlign="Right">
                        <ItemTemplate>
                            <asp:Label ID="lblCost" Text='<%# Eval("CostText") %>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Status">
                        <ItemTemplate>
                            <asp:Label ID="lblStatus" Text='<%# Eval("ComputedStatus") %>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ExpDate" ItemStyle-HorizontalAlign="Right">
                        <ItemTemplate>
                            <asp:Label ID="lblExpDate" Text="" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Destination">
                        <ItemTemplate>
                            <asp:DropDownList runat="server" ID="ddlDestination" DataValueField="PkgDestId" DataTextField="DestinationName" CssClass="form-control"/>
                            <asp:Label ID="lblNameDestination" runat="server" />
                            <asp:Button runat="server" ID="btnDestination" CssClass="btn apps_btn apps_gray_btn" OnCommand="grid_RowCommand" />
                        </ItemTemplate>
                    </asp:TemplateField>
                                        
                    
                </Columns>
                </asp:GridView>
    </div>
</asp:Content>
